/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="EXAMES")
public class ExamesProteu implements Serializable{

    @Id
    @Column(name="EXA_ST_CODIGO")
    private String exaStCodigo;
    @Column(name="EXA_ST_DESCRICAO")
    private String exaStDescricao;
    @Column(name="EXA_SYS_DATA")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date exaSysData;
    @Column(name="EXA_SYS_USUARIO")
    private String exaSysUsuario;


    public String getExaStCodigo() {
        return exaStCodigo;
    }

    public void setExaStCodigo(String exaStCodigo) {
        this.exaStCodigo = exaStCodigo;
    }

    public String getExaStDescricao() {
        return exaStDescricao;
    }

    public void setExaStDescricao(String exaStDescricao) {
        this.exaStDescricao = exaStDescricao;
    }

    public Date getExaSysData() {
        return exaSysData;
    }

    public void setExaSysData(Date exaSysData) {
        this.exaSysData = exaSysData;
    }

    public String getExaSysUsuario() {
        return exaSysUsuario;
    }

    public void setExaSysUsuario(String exaSysUsuario) {
        this.exaSysUsuario = exaSysUsuario;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ExamesProteu other = (ExamesProteu) obj;
        if ((this.exaStCodigo == null) ? (other.exaStCodigo != null) : !this.exaStCodigo.equals(other.exaStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 67 * hash + (this.exaStCodigo != null ? this.exaStCodigo.hashCode() : 0);
        return hash;
    }


}
